package com.project.bookstore.order.pojo;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

@Getter
public enum OrderState {
    TOBE_CONFIRM(1,"TOBE_CONFIRM", "待确认"),
    TOBE_PAY(2,"TOBE_PAY","待支付"),
    TOBE_SHIPPED(3,"TOBE_SHIPPED","待发货"),
    CONFIRM_RECEIPT(4,"CONFIRM_RECEIPT","确认收货"),
    RETURN_GOODS(5,"RETURN_GOODS","退货/退款"),
    TOBE_EVALUATED(6,"TOBE_EVALUATED","待评价");

    OrderState(int state, String stateName,String message) {
        this.state = state;
        this.stateName = stateName;
        this.stateMessage=message;
    }

    @EnumValue
    private final int state;
    private final String stateName;
    private final String stateMessage;
}